package com.heisenhub.logs;


import com.heisenhub.common.db.annotation.EnableXmMybatisHandler;
import com.heisenhub.common.feignClient.annotation.EnableXMFeignClientHandler;
import com.heisenhub.common.oauth.annotation.EnableXMOauthHandler;
import com.heisenhub.common.redis.annotation.EnableXMRedisHandler;
import com.heisnenhub.common.module.annotation.EnableXmModuleHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@EnableDiscoveryClient  //应用程序注册到服务注册中心中
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)  // 开启权限注解
@EnableXMOauthHandler  // 开启认证
@EnableXmMybatisHandler  // 开启mysql功能
@EnableXmModuleHandler  // 开启基础moudel bean
@EnableXMRedisHandler  // 开启redis
@EnableXMFeignClientHandler // 开启feign
public class HubLogsApplication {
    public static void main(String[] args) {
        SpringApplication.run(HubLogsApplication.class, args);
    }

}
